import request from '@/utils/request'

export function deskList(query) {
  return request({
    url: '/shop/desk/list',
    method: 'post',
    data: query
  })
}

export function deleteObj(id)
{
  return request({
    url: '/shop/desk/'+id,
    method: 'delete'
  })
}


export function updateOrSave(data) {
  return request({
    url: '/shop/desk',
    method: 'put',
    data: {
      ...data
    }
  })
}


